//
//  NSString+Extension.m
//  WYCweibo
//
//  Created by 魏云超 on 15/11/21.
//  Copyright © 2015年 魏云超. All rights reserved.
//

#import "NSString+Extension.h"

@implementation NSString (Extension)
//追加文档目录
-(NSString *)appendDocumentDir
{
    NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)lastObject];
    return [path stringByAppendingPathComponent:self];
}
//追加缓存目录
-(NSString *)appendCacheDir
{
        NSString *path = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES)lastObject];
     return [path stringByAppendingPathComponent:self];
}
//追加临时目录
-(NSString *)appendTempDir
{
    NSString *path = NSTemporaryDirectory();
     return [path stringByAppendingPathComponent:self];
    
}
@end
